package com.label.Model.Do;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 用户画像
 */
@TableName(value = "PERSONAS_PERSONAS")
@Data
public class Persons {

	@TableId(type = IdType.ASSIGN_ID )
	private Long id;

	private String name;

	private String author;

	private String param;   //筛选条件

	private String attr;    //sql

	@TableField(value = "createtime",fill = FieldFill.INSERT)
	private Date createTime;

	@TableField(value = "updatetime",fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@TableField(fill = FieldFill.INSERT)
	private String state;	//删除标志

    private String count;

    private String run_finish_state;  //0-不可计算，1-未计算，2-计算中，3-计算完成

    private String run_state;

    private String auth;

    private String theme;

    private String originaljson;

	@TableField(exist = false)
	private List<PersonsCard> cards;

	public Persons(){};

	public Persons(Long id,String run_finish_state){this.id=id;this.run_finish_state=run_finish_state;};

	public Persons(Long id) {this.id=id;}

}
